package com.quanyan.club.util.qrcode.util;

import com.google.zxing.BarcodeFormat;

import java.awt.*;
import java.util.Map;

/**
 * 二维码配置信息
 *
 * @author xian-guo
 */
public class CodeConfig {
    private boolean logoFlag = false;
    private String content;
    private BarcodeFormat barcodeformat = BarcodeFormat.QR_CODE;
    private int width = 200;
    private int height = 200;
    private Map hints;
    private String logoPath;
    private String putPath;
    private LogoConfig LogoConfig;
    private CodeColor codeColor;
    private boolean codeBorderFlag = false;
    private int codeBorderSize = 5;
    private Color codeBorderColor = Color.GRAY;

    public boolean isLogoFlag() {
        return logoFlag;
    }

    public void setLogoFlag(boolean logoFlag) {
        this.logoFlag = logoFlag;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public BarcodeFormat getBarcodeformat() {
        return barcodeformat;
    }

    public void setBarcodeformat(BarcodeFormat barcodeformat) {
        this.barcodeformat = barcodeformat;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public Map getHints() {
        return hints;
    }

    public void setHints(Map hints) {
        this.hints = hints;
    }

    public String getLogoPath() {
        return logoPath;
    }

    public void setLogoPath(String logoPath) {
        this.logoPath = logoPath;
    }

    public String getPutPath() {
        return putPath;
    }

    public void setPutPath(String putPath) {
        this.putPath = putPath;
    }

    public LogoConfig getLogoConfig() {
        return LogoConfig;
    }

    public void setLogoConfig(LogoConfig logoConfig) {
        LogoConfig = logoConfig;
    }

    public CodeColor getCodeColor() {
        return codeColor;
    }

    public void setCodeColor(CodeColor color) {
        this.codeColor = color;
    }

    public boolean isCodeBorderFlag() {
        return codeBorderFlag;
    }

    public void setCodeBorderFlag(boolean codeBorderFlag) {
        this.codeBorderFlag = codeBorderFlag;
    }

    public int getCodeBorderSize() {
        return codeBorderSize;
    }

    public void setCodeBorderSize(int codeBorderSize) {
        this.codeBorderSize = codeBorderSize;
    }

    public Color getCodeBorderColor() {
        return codeBorderColor;
    }

    public void setCodeBorderColor(Color codeBorderColor) {
        this.codeBorderColor = codeBorderColor;
    }

}